#coding=utf-8
'''
Created on 2016.3.14

@author: wangpeng
'''
import urllib
import httplib
import json
import os
import os.path
import urlparse
import time
import random
import logging
import re
now = time.strftime('%Y-%m-%M-%H_%S',time.localtime(time.time()))
logging.basicConfig(level=logging.INFO,
                format='%(asctime)s %(filename)s %(levelname)s %(message)s',
                datefmt='%y%m%d_%H:%M:%S',
                filename= 'E:\\eclipse\\All_project_BT_speaker\\SONY_XBH\\report\\test_log.txt',
                #filename= 'test_log.txt',
                filemode='w')
#################################################################################################
#瀹氫箟涓�涓猄treamHandler锛屽皢INFO绾у埆鎴栨洿楂樼殑鏃ュ織淇℃伅鎵撳嵃鍒版爣鍑嗛敊璇紝骞跺皢鍏舵坊鍔犲埌褰撳墠鐨勬棩蹇楀鐞嗗璞�#
console = logging.StreamHandler()
console.setLevel(logging.INFO)
formatter = logging.Formatter('%(asctime)s %(message)s')
console.setFormatter(formatter)
logging.getLogger('').addHandler(console)